#region Usings

using System.Collections.Generic;
using System.Linq;
using Rail.Net.Core.Interfaces.Data;
using Rail.Net.Core.Model;

#endregion

namespace Rail.Net.Data
{
    public class DistanceRepository : Repository<Distance>, IDistanceRepository
    {
        #region IDistanceRepository Members

        public IEnumerable<Distance> GetDistancesForEvas(SortedSet<string> evas)
        {
            return AllDefaultsIncluded().Where(d => evas.Contains(d.TispTisp));
        }

        #endregion
    }
}